//
//  AVSingleton.h
//  LastTemp
//
//  Created by apple on 15/4/22.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import "MyViewController.h"

@protocol changeAlph <NSObject>

- (void)changAlphNight;
- (void)changAlphDay;

@end

@protocol presentPlyerView <NSObject>

- (void)presentPlyer;

@end

@protocol goApp <NSObject>

- (void)goAp;

@end




@interface AVSingleton : NSObject<AVAudioPlayerDelegate>
//单例的写法
+(instancetype)shareSingleton;

@property(nonatomic,assign)BOOL myBool;
@property(nonatomic,retain)AVAudioPlayer *player;
@property(nonatomic,retain)NSMutableArray *fromArr;
@property(nonatomic,assign)NSInteger fromNum;
@property(nonatomic,assign)NSInteger nightDayNum;
@property(nonatomic,assign)int percentage;

@property(nonatomic,assign)NSInteger playNum;
@property(nonatomic,assign)NSInteger playNum2;
@property(nonatomic,assign)NSInteger playNum3;
@property(nonatomic,copy)NSString *beginTime;
@property(nonatomic,assign)NSInteger oneTime;

@property(nonatomic,copy)NSString *time;


@property(nonatomic,copy)NSString *bigButton;

@property(nonatomic,assign)NSInteger internetNum;
@property(nonatomic,assign)NSInteger internetNum1;
@property(nonatomic,assign)NSInteger internetNum2;
@property(nonatomic,assign)NSInteger internetNum3;




@property(nonatomic,assign)id<changeAlph>delegate;

@property(nonatomic,assign)id<presentPlyerView>delegatePlay;

@property(nonatomic,assign)id<goApp>delegateApp;

-(void)AVPlayer:(NSString *)SongURL;

- (void)night;
- (void)day;

- (void)goPlyer;

- (void)goTo;


@end
